#!/bin/bash
stat=""
info=""
datetime=`date +%s`
hostname=`hostname -s`
repolist="juno.ihep.ac.cn common.ihep.ac.cn"
cvmfsstatus=`cvmfs_config probe $repolist | grep Probing | grep -v "OK"`
if [ "$cvmfsstatus" != "" ]; then
    stat="error"
    info="$cvmfsstatus"
else
    stat="ok" 
fi
echo $0" time:$datetime execnode:$hostname stat:$stat info:$info"
exit 0
